<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2016/3/8
  Time: 13:42
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>公司修改</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <meta name="renderer" content="webkit">
    <link href="${pageContext.request.contextPath}/static/css/common.css" rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/css/bootstrap.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/font-awesome-4.3.0/css/font-awesome.min.css"
          rel="stylesheet">
    <link href="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/css/select2.min.css"
          rel="stylesheet"/>

    <script src="${pageContext.request.contextPath}/static/js/jquery-1.11.3.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/bootstrap-3.3.5/js/bootstrap.min.js"></script>
    <script src="${pageContext.request.contextPath}/static/plugins/select2-4.0.0/dist/js/select2.min.js"></script>
	<script src="${pageContext.request.contextPath}/static/js/global.js"></script>
	<style>
		.lt{float:left}
		.form-group{overflow:hidden;}
		.form-group label{width:25%;*+width:20%;text-align:right\9;*+text-align:right;}
		.form-group .col-sm-8{width:66%\9;*+width:66%;}
		.form-group .form-control{*+width:95%;}
		.form-control{*+height:28px;*+line-height:28px;}
		.input-group {*+position:relative;}
		.input-group a{*+position:absolute;*+right:0;*+z-index:10;*+display:block;*+width:60px;*+height:28px;*+line-height:28px;}
	</style>
</head>
<body>
<div class="col-sm-12">
    <form class="form-horizontal m-t" id="form" method="post"
          action="${pageContext.request.contextPath}/admin/tagent_update.action">
        <input type="hidden" name="sid" value="${map.sid}">
         <div class="form-group">
            <label class="col-sm-3  control-label lt"><i class="require">*</i>公司编号:</label>
            <div class="col-sm-8 lt">
                <input class="form-control" name="agtCode" size="30" value="${map.agtCode}" disabled="disabled"/>
            </div>
         </div>
         <div class="form-group">
            <label class="col-sm-3  control-label lt"><i class="require">*</i>公司名称:</label>
            <div class="col-sm-8 lt">
                <input class="form-control" name="agtName" size="30" value="${map.agtName}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3  control-label lt"><i class="require">*</i>账号:</label>
            <div class="col-sm-8 lt">
                <input class="form-control" name="adminUser" size="30" value="${map.adminUser}" disabled="disabled"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3  control-label lt"><i class="require">*</i>密码:</label>
            <div class="col-sm-8 lt">
                <div class="input-group">
                    <input class="form-control" type="password" readonly size="30" value="******"/>
                    <a class="input-group-addon" href="javascript:void(0);">修改</a>
                </div>
            </div>
         </div>
        <div class="form-group">
	        <label class="col-sm-3 control-label lt"><i class="require">*</i>联系人:</label>
	        <div class="col-sm-8 lt">
	            <input class="form-control" name="agtContact" size="30" value="${map.agtContact}"/>
	        </div>
	    </div>
	    <div class="form-group">
	        <label class="col-sm-3 control-label lt"><i class="require">*</i>联系方式:</label>
	        <div class="col-sm-8 lt">
	            <input class="form-control" name="agtTel" size="30" value="${map.agtTel}"/>
	
	        </div>
	    </div>
    	<div class="form-group">
		        <label class="col-sm-3 control-label lt"><i class="require">*</i>所属区域:</label>
	        	<div class="col-sm-8 lt" id="region">
	            	<input type="hidden" name="areaCode" value="${map.areaCode}">
	            	<div class="input-group">
		                <input class="form-control" readonly size="30"
		                       value="${map.described}"/>
		                <a class="input-group-addon btn btn-primary" onclick="loadRegions();">修改</a>
	            	</div>
	        	</div>
	        </div>
       <div class="form-group">
            <label class="col-sm-3  control-label lt">地址:</label>
            <div class="col-sm-8 lt">
                <input class="form-control" name="address" size="30" value="${map.address}"/>
            </div>
        </div>
        
        <div class="form-group">
            <label class="col-sm-3  control-label lt">APPKEY:</label>
            <div class="col-sm-8 lt">
                <input class="form-control" name="platAppKey" size="30" value="${map.platAppKey}" disabled="disabled"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3  control-label lt">商务人员:</label>
            <div class="col-sm-8 lt">
                <input class="form-control" name="aUserName" size="30" value="${map.aUserName}" disabled="disabled"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3  control-label lt">APP应用:</label>
            <div class="col-sm-8 lt">
                <input class="form-control" name="" size="30" value="" disabled="disabled"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3  control-label lt">创建时间:</label>
            <div class="col-sm-8 lt">
                <input class="form-control" name="reqTime" size="30" value="${map.reqtime}" disabled="disabled" />
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
$(".input-group-addon").click(function () {
    var $input = $(this).prev();
    $input.removeAttr("readonly");
    $input.attr("name", "comm");
    $input.val("");
});
</script>
</body>
</html>
